package ${viewModule.viewPacking}.vo;

import java.io.Serializable;
import java.util.List;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import cn.afterturn.easypoi.excel.annotation.Excel;
<#if generateType=='1' >
    <#list detailedTable as po>
import ${viewModule.viewPacking}.entity.${po};
    </#list>
</#if>


@Data
@TableName("${name}")
public class ${entityName}MainPage {

<#list originalColumns as po>
    /**${po.uiFieldcomment}*/
    <#if po.uiFieldname == primaryKeyField>
     @TableId(type = IdType.UUID)
    <#else>
<#if po.uiFieldtype =='DATETIME' || po.uiFieldtype =='TIME'|| po.uiFieldtype =='DATE' >
    @Excel(name = "${po.uiFieldcomment}", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
<#else>
    @Excel(name = "${po.uiFieldcomment}", width = 15)
</#if>
    </#if>
    @ApiModelProperty(value = "${po.uiFieldcomment}")
    private <#if po.uiFieldtype=='Blob'>byte[] ${po.fieldname};
            <#elseif po.uiFieldtype=='TINYINT'> Integer ${po.fieldName};
            <#elseif po.uiFieldtype=='DATETIME'> Date ${po.fieldName};
            <#elseif po.uiFieldtype=='INT'> Integer ${po.fieldName};
            <#elseif po.uiFieldtype=='DOUBLE'> Double ${po.fieldName};
            <#elseif po.uiFieldtype=='FLOAT'> Float ${po.fieldName};
            <#elseif po.uiFieldtype=='DECIMAL'> Double ${po.fieldName};
            <#else>String ${po.fieldName};
        </#if>
</#list>

<#if generateType=='1' >
    <#list detailedTable as po>
    private List<${po}> ${po?uncap_first}List;
    </#list>
</#if>



}
